home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / comms / internet / html-related / hsc / grafflwerk / makefile < prev    next >
Makefile  |  1996-08-18  |  1KB  |  66 lines

  1. #
  2. # Makefile for hsc-projects
  3. #
  4.  
  5. #
  6. # DESTDIR  - destination directory (relative)
  7. # IGNORE   - messages to be ignored
  8. # PRJFILE  - project file
  9. # STDINC   - standard includes for all sources
  10. # HSCMISC  - miscellaneous flags and options
  11. # HSC      - shell command that invokes hsc
  12. # HSCFLAGS - hsc options
  13. #
  14. # HSCDEPP  - shell command that invokes hscdepp
  15. #
  16.  
  17. DESTDIR =/docs/
  18. IGNORE  =ign=46
  19. PRJFILE =hsc.project
  20. STDINC  =inc/my_macros.hsc
  21. HSCMISC =rplcent
  22.  
  23. HSC     =hsc
  24. HSCFLAGS=$(HSCMISC) $(IGNORE) prjfile=$(PRJFILE) to=$(DESTDIR) $(STDINC)
  25.  
  26. HSCDEPP =hscdepp
  27.  
  28. #
  29. # rule to update whole docs
  30. # (all_hsc will be created by hscdepp)
  31. #
  32. all : all_hsc
  33.  
  34. #
  35. # implicit rule for html-files
  36. #
  37. $(DESTDIR)%.html : %.hsc
  38.         $(HSC) $(HSCFLAGS) $<
  39.  
  40. #
  41. # update dependencies
  42. #
  43. depend :
  44.         $(HSCDEPP) file=Makefile prjfile=$(PRJFILE) verbose
  45.  
  46. #
  47. # add new file / change includes of existing file
  48. #
  49. # example: make NEW FILE=new.hsc "INCLUDE=inc/macro.hsc inc/sepp.hsc"
  50. #
  51. NEW :
  52. ifndef FILE
  53.         @echo *** please specify variable FILE (and on your option INCLUDE)
  54. else
  55.     $(HSC) $(HSCFLAGS) $(INCLUDE) from=$(FILE) 
  56. endif
  57.  
  58. # --- DO NOT MODIFY THIS LINE -- hsc-dependencies follow ---
  59.  
  60. all_hsc :
  61.  
  62. # --- DO NOT MODIFY THIS LINE -- hsc-dependencies precede ---
  63.  
  64. #EOF
  65.